package demo.listener;

import demo.handler.UserEventOperationHandler;
import event.DataLogEvent;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

@Component
public class UpdateDataLogListener implements ApplicationListener<DataLogEvent> {
    @Autowired
    UserEventOperationHandler userEventOperationHandler;
    @Override
    public void onApplicationEvent(DataLogEvent event) {
        userEventOperationHandler.handleBusiness(event);
    }
}